export const settingAction = {
    changeLang({state,commit},lang){
        commit('CHANGE_LANG',lang);
        window.vueVm.$i18n.locale = lang;
        window.i18nLocale = lang;
        window.localStorage.setItem('user_lang',lang)
    },
    
    //在head,index中管理最大化
    changeWindow({state,commit},isMax){
        state.isMax = isMax
        commit('CHANGE_WINDOW',isMax);
        window.localStorage.setItem('isMax',isMax)
    },

    updatePageLoading({state,commit},bool){
        state.pageLoading = bool;
        commit('CHANGE_PAGELOADING',bool);
    }
}
